﻿@model MobileWeb.Models.ApartmentDetails

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div id="titleCode1">
    @Model.TitleCode1
</div>
<div id="titleCode2">
    @Model.State
</div>
<table id="apartmentInfoTable">
    <thead>
        <tr>
            <th colspan="3">
                @Model.TitleCode2
            </th>
        </tr>        
    </thead>
    <tbody>
        <tr>
            <td>
            
            </td>
            <td>
                prostorija
            </td>
            <td>
                netto. pov.
            </td>
        </tr>
        @for (int i=0; i < Model.Rooms.Count; i++)
        {
            if ((i % 2) != 0)
            {
                <tr>
                    <td>
                        @Model.Rooms[i].Mark
                    </td>
                    <td>
                        @Model.Rooms[i].Name
                    </td>
                    <td>
                        @Model.Rooms[i].Area m2
                    </td>
                </tr>
            }
            else 
            {
                 <tr id="grayRowInfoApTable">
                    <td>
                        @Model.Rooms[i].Mark
                    </td>
                    <td>
                        @Model.Rooms[i].Name
                    </td>
                    <td>
                        @Model.Rooms[i].Area m2
                    </td>
                </tr>
            }
        }
        <tr id="ukupnaPovApartDetails">
            <td>
                
            </td>
            <td>
                UKUPNA POVRŠINA
            </td>
            <td>
                @Model.Area m2
            </td>
        </tr>
    </tbody>
</table>
<div>
    <img id="apartmentDetailsPhoto" src="http://@Model.PhotoUrl" alt="" />
</div>
<div>
    <a href="http://www.centar-bundek.hr/Content/PDF/@Model.PdfUrlCode">
        <img src="/Content/Images/pdfIcon.png" alt="" style="max-width:100%;" />
    </a>
</div>

